home *** CD-ROM | disk | FTP | other *** search
- *** orig/libgplus.262/libio/filebuf.cc Sun Dec 18 18:47:32 1994
- --- src/libgplus.262/libio/filebuf.cc Sun Dec 18 22:25:00 1994
- ***************
- *** 24,30 ****
- --- 24,34 ----
-
- Written by Per Bothner (bothner@cygnus.com). */
-
- + #ifndef __MSDOS__
- #include "iostreamP.h"
- + #else
- + #include "iostreaP.h"
- + #endif
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- ***************
- *** 99,104 ****
- --- 103,112 ----
- posix_mode |= O_CREAT;
- if (mode & (int)ios::noreplace)
- posix_mode |= O_EXCL;
- + #ifdef O_BINARY
- + if (mode & (int)ios::bin)
- + posix_mode |= O_BINARY;
- + #endif
- int fd = ::open(filename, posix_mode, prot);
- if (fd < 0)
- return NULL;
-